package cn.bonoon.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

@Entity
@Table(name = "t_codegenerate")
public class CodeGenerateEntity extends AbstractPersistable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 240717279304133327L;

	/**
	 * 存放一个32位的MD5码的值
	 */
	@Column(name = "C_KEY", length = 32)
	private String key;
	
	@Column(name = "C_COUNT")
	private int count;
	
	@Column(name = "C_PREFIX", length = 20)
	private String prefix;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
}
